import Layout from '@/layout'

const studentsRouter = {
  path: '/personnel',
  component: Layout,
  redirect: '/personnel/student',
  alwaysShow: true, // 将始终显示在菜单栏
  name: 'Personnel',
  meta: { title: '学员管理', icon: 'xueyuanguanli' },
  children: [
    {
      path: 'student',
      component: () => import('@/views/student'),
      name: 'Student',
      meta: { title: '学生列表', icon: 'list' }
    },
    {
      path: 'punishment',
      component: () => import('@/views/punishment'),
      name: 'punishment',
      meta: { title: '千分制管理', icon: 's-help' }
    }
  ]
}

export default studentsRouter
